home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / AttrTable$ConstraintsDialog.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.9 KB  |  53 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.DialogFactory;
  4. import com.extensibility.xml.BaseDeclaration;
  5. import com.extensibility.xml.DTDUtilities;
  6. import com.extensibility.xml.ParserException;
  7. import javax.swing.JFrame;
  8.  
  9. public class AttrTable$ConstraintsDialog extends ConstraintsCellDialog {
  10.    // $FF: synthetic field
  11.    final AttrTable this$0;
  12.    int row;
  13.    int column;
  14.  
  15.    public AttrTable$ConstraintsDialog(AttrTable var1, JFrame var2, SchemaDoc var3, BaseDeclaration var4, OptionsQlicker var5, String var6) {
  16.       super(var2, var3, var5, var4, false, var6);
  17.       this.this$0 = var1;
  18.    }
  19.  
  20.    void setTableInfo(int var1, int var2) {
  21.       this.row = var1;
  22.       this.column = var2;
  23.    }
  24.  
  25.    protected void doApply() {
  26.       try {
  27.          DTDUtilities.parseNameList(((CellDialog)this).getText(), '|');
  28.          this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
  29.          super.doApply();
  30.       } catch (ParserException var2) {
  31.          DialogFactory.showValidation(this, var2.getMessage(), false);
  32.       }
  33.  
  34.    }
  35.  
  36.    protected boolean doSave() {
  37.       try {
  38.          DTDUtilities.parseNameList(((CellDialog)this).getText(), '|');
  39.          this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
  40.          if (this.this$0.getCellEditor() instanceof OptionsQlicker) {
  41.             ((OptionsQlicker)this.this$0.getCellEditor()).setText(((CellDialog)this).getText());
  42.          }
  43.  
  44.          boolean var1 = true;
  45.          return var1;
  46.       } catch (ParserException var3) {
  47.          DialogFactory.showValidation(this, var3.getMessage(), false);
  48.          boolean var2 = false;
  49.          return var2;
  50.       }
  51.    }
  52. }
  53.